package cn.wolfcode.luowowo.acticle.query;

import cn.wolfcode.luowowo.common.query.QueryObject;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;

/**
 * 目的地查询对象
 */
@Setter
@Getter
public class DestinationQuery extends QueryObject {
    private String keyword;  //关键字查询

    public String getKeyword() {
        return StringUtils.isBlank(keyword) ? null : keyword;
    }

    private Long parentId;

    private int ishot = -1;  //是否热门

    private String orderBy = " d.id ";

    private String[] destIds;
/*
    public String[] getDestIds() {

        return destIds != null && destIds.length > 0 ? destIds : null;
    }*/
}
